package com.aysafety.iotdataplatformweb.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: iotDataPlatform
 * @description: 液压支架
 * @author: ChengQi
 * @create: 2019-02-13 10:27
 **/
@Mapper
@Repository
public interface HydraulicsupportDao {

    /**
     * @Description: 查询液压支架实时数据
     * @Param: [params]
     * @return: int
     * @Author: ChengQi
     * @Date: 2019/2/13
     */
    public List<Map<String,Object>> queryRealTimeByHydraulicSupport(Map<String, Object> params);

    /**
    * @Description: 液压支架实时数量
    * @Param: [parram]
    * @return: long
    * @Author: ChengQi
    * @Date: 2019/2/13
    */
    long countByHydraulicSupport(Map<String, Object> parram);

    /**
    * @Description: 查询频次
    * @Param: [parram]
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
    * @Author: ChengQi
    * @Date: 2019/2/21
    */
    List<Map<String, Object>> queryFrequency(Map<String, Object> parram);

    /**
    * @Description: 查询闪烁
    * @Param: [parram]
    * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
    * @Author: ChengQi
    * @Date: 2019/2/21
    */
    List<Map<String, Object>> queryFlicker(Map<String, Object> parram);


    /**
     * 查询所有的deviceId
     * @param params
     * @return
     */
    List<String> queryDeviceId(Map<String, Object> params);


    //List<Map<String,Object>> queryCalEmergoa1(Map<String, Object> parram);

    //List<Map<String,Object>> queryCalPulse1(Map<String, Object> parram);

    /**
     * 查询液压支架的学习参数
     * @param params
     * @return
     */
    List<Map<String, Object>> queryHydraulicSupportWarningStudy(Map<String, Object> params);

    /**
     * 查询综合预警
     * @param params
     * @return
     */
    List<Map<String, Object>> queryWarning(Map<String, Object> params);
}
